import { createModule } from '@/router/type'
import LayoutView from '@/layout/LayoutView.vue'

export default createModule([
  {
    path: '/alarm',
    redirect: '/alarm/alarm-report',
    component: LayoutView,
    meta: {
      icon: import('~icons/menu/alarm'),
      title: '报警'
    },
    children: [
      {
        path: 'alarm-report',
        name: 'AlarmReport',
        meta: { title: '报警记录' },
        component: () => import('@views/alarm/alarm-report.vue')
      },
      {
        path: 'alarm-rule',
        name: 'AlarmRule',
        meta: { title: '报警触发器' },
        component: () => import('@views/alarm/alarm-rule.vue')
      },
      {
        path: 'receive-config',
        name: 'AlarmReceiveConfig',
        meta: { title: '报警接收配置' },
        component: () => import('@views/alarm/receive-config.vue')
      }
    ]
  }
], true)
